From d8449c12e414166e4032047e38f44d31fdca4650 Mon Sep 17 00:00:00 2001 From: robertl Date: Fri, 18 Oct 2002 04:12:46 +0000 Subject: [PATCH] Complete Magellan Navigator support. Thanx to Ron Parker! --- gpsbabel/Makefile | 2 +- gpsbabel/README | 11 +++++++++++ gpsbabel/README.magnav | 28 ++++++++++++++++++++++++++++ gpsbabel/reference/magnav.pdb | Bin 0 -> 1160 bytes gpsbabel/reference/magnavr.gpu | 9 +++++++++ gpsbabel/testo | 16 ++++++++++++++++ 6 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 gpsbabel/README.magnav create mode 100644 gpsbabel/reference/magnav.pdb create mode 100644 gpsbabel/reference/magnavr.gpu diff --git a/gpsbabel/Makefile b/gpsbabel/Makefile index b83592c6b..5ed8c99fb 100644 --- a/gpsbabel/Makefile +++ b/gpsbabel/Makefile @@ -1,4 +1,4 @@ -CFLAGS=-g -Icoldsync +CFLAGS=-g -Icoldsync -belf -I/usr/local/include/ FMTS=magproto.o gpx.o geo.o gpsman.o mapsend.o mapsource.o \ gpsutil.o tiger.o pcx.o csv.o cetus.o gpspilot.o magnav.o \ diff --git a/gpsbabel/README b/gpsbabel/README index c37b5f9eb..608500c3b 100644 --- a/gpsbabel/README +++ b/gpsbabel/README @@ -124,6 +124,17 @@ THE FORMATS The file format for GPSPILOT (http://www.gpspilot.com) was provided by Ron Parker. GPSbabel can currently read gpspilot files, but not write them. + + MAGNAV + + Magellan NAV Companion for Palm/OS is not really designed for this + sort of use, but its file format is supported and with a little bit + of patience you can both read and write NAV Companion waypoints. + Please read README.magnav for further tips on getting waypoints + in and out of NAV Companion. This conversion is based on partially + incomplete reverse-engineering of the record format, so it may not + work with all versions of NAV Companion. It has been tested with + version 2.10. PSP diff --git a/gpsbabel/README.magnav b/gpsbabel/README.magnav new file mode 100644 index 000000000..c0cf42e70 --- /dev/null +++ b/gpsbabel/README.magnav @@ -0,0 +1,28 @@ +Translating NAV Companion waypoints to another format is as easy +as with any other format. Just find the Companion_Waypoints database +in your palm backup directory and use it as the input file. + +When translating waypoints back to NAV Companion, though, you need +to jump through some hoops: + +First, you must merge any waypoints that already exist in the database +in your Palm Backup directory with the ones you are adding; failure to +do so will result in only the new points being available in NAV Companion, +even if you give the new database a different name (it will overwrite +the old database, even in your backup directory. That's a feature of +PalmOS, not of NAV Companion.) + +To merge the databases, use a command line like the following: + +gpsbabel -i magnav -f Companion_Waypoints.PDB -i geo -f geocaching.loc -o magnav -F merged.pdb + +Second, you must use the installer to install your new PDB file. Don't +make the mistake of copying it over the existing Companion_Waypoints.PDB +file; the one on the handheld will overwrite it rather than merging with +it. + +Finally, because NAV Companion is not designed to work with desktop +applications, you must tell NAV Companion that its waypoints database +has changed out from under it. One way to do this is to go to the +waypoints screen and attempt to scroll; that will force it to reread +the database and fix the record pointers that it keeps on the heap. diff --git a/gpsbabel/reference/magnav.pdb b/gpsbabel/reference/magnav.pdb new file mode 100644 index 0000000000000000000000000000000000000000..1a851c3ef93074d558d352e18368f42d55642eec GIT binary patch literal 1160 zcmd^i@5=@`4QThyvml8X6?j`&pP&ay8B*F#sBP}PN< zj{E~i`~ff^F?6WZ30Of4NNnhMN81nt3fXz`)AxQnee{0F=gVF~1($-{qj@5^P#OGY zRj^*3L}$i_&Yzie=V78YLbX3Qp9ZjAobN1+Y5|m5s3rWKqfVfHK`rCbN1a4{iaLe* z9<_p3w@|C-)^^5H)c@D4(nNW3s#2Yvsa=_!o5x1X!vf5r&s6$7s_6Mx&wM z^gP&*eW559#N)e+tTMXC1lh?+*3WX=u^kgS3h6F<(#5N{Cd?r1hT}pfVx*JGI5r?^ z->D}&mWo^_0qyZPH=(1DOP_1HIKla&8KhtLV1@57;>q3)OAYj{47b_{d@vsH`(s_a z{%{Gb-)<~Ju-Wc3Tf?mJl5?-Mba8wzV7YY%)@7Fpvd+7aiex`y7t|!XDA@#$D%h=H zeurwn^jsT4{Nb=xpWer2V#V!o=W+FoE}ne7WH~pN187J2jf|}F^MM3BWr4|+rA^Uw z{ypLHH(l^|1ETFVAmmEr+sUu?E#lLV3QTy5rn^61hmi%(o$4ZcG=yA%H4&Snxaj_! Hiorhs*zB=| literal 0 HcmV?d00001 diff --git a/gpsbabel/reference/magnavr.gpu b/gpsbabel/reference/magnavr.gpu new file mode 100644 index 000000000..e23f70209 --- /dev/null +++ b/gpsbabel/reference/magnavr.gpu @@ -0,0 +1,9 @@ +GCEBB 3597.203N 08713.470W 0000000m Mountain Bike Heaven by susy13 a +GC1A37 3609.068N 08667.955W 0000000m The Troll by a182pilot & Famil a +GC1C2B 3599.627N 08662.012W 0000000m Dive Bomber by JoGPS & family a +GC25A9 3603.848N 08664.862W 0000000m FOSTER by JoGPS & Family a +GC2723 3611.218N 08674.177W 0000000m Logan Lighthouse by JoGps & Fa a +GC2B71 3606.408N 08679.052W 0000000m Ganier Cache by Susy1313 a +GC309F 3608.777N 08680.973W 0000000m Shy's Hill by FireFighterEng33 a +GC317A 3605.750N 08689.200W 0000000m GittyUp by JoGPS / Warner Park a +GC317D 3608.280N 08686.728W 0000000m Inlighting by JoGPS / Warner P a diff --git a/gpsbabel/testo b/gpsbabel/testo index 307895142..4da9e1cac 100755 --- a/gpsbabel/testo +++ b/gpsbabel/testo @@ -118,3 +118,19 @@ diff ${TMPDIR}/ozi.ozi reference ${PNAME} -i holux -f reference/paris.wpo -o holux -F ${TMPDIR}/paris.wpo diff reference/paris.wpo ${TMPDIR}/paris.wpo +# Magellan NAV Companion for PalmOS +# This format is hard to test, because each record and the database itself +# contains the time of creation, so two otherwise identical files won't +# compare accurately. In any case, the files are binary so diff wouldn't +# like them. So, we convert the reference file to gpsutil and the converted +# file to gpsutil and make sure they're the same, and that they're the same +# as one converted on a known-working installation. Unfortunately, this does +# not verify that the appinfo block was written correctly. However, it does +# successfully test for some endianness errors that might otherwise go +# unnoticed. +${PNAME} -i geo -f geocaching.loc -o magnav -F ${TMPDIR}/magnav.pdb +${PNAME} -i magnav -f ${TMPDIR}/magnav.pdb -o gpsutil -F ${TMPDIR}/magnav.gpu +${PNAME} -i magnav -f reference/magnav.pdb -o gpsutil -F ${TMPDIR}/magnavt.gpu +diff ${TMPDIR}/magnavt.gpu ${TMPDIR}/magnav.gpu +diff reference/magnavr.gpu ${TMPDIR}/magnav.gpu + -- 2.30.2